/**
 * 
 */
package com.naveejr.dao;

import com.naveejr.commons.dao.GenericDao;
import com.naveejr.domain.UserEntity;

/**
 * @author rajeevan
 *
 *         Data Access object interface to work with User entity database
 *         operations
 */
public interface UserDao extends GenericDao<UserEntity, Long> {

	/*
	 * Quaries database for user name availability
	 * 
	 * @param userName
	 * 
	 * @return true if same user name doesn't exist in database
	 */
	boolean checkAvailable(String userName);

	/*
	 * Quaries he database by userName
	 * 
	 * @param userName
	 * 
	 * @return UserEntity, null if user not available
	 */
	UserEntity loadUserByUserName(String userName);

}
